// .txt

beginzonescript;

variables;

short im_hostile = 0;
short last_abil;
short counter = 0;
short set_ter1 = 0;

body;

beginstate INIT_STATE;
	last_abil = get_current_tick();

	set_name(5037,"Raider Hawk");
	set_name(30000,"Crypt Raiders");


	set_name(30005,"Skeletal Assassin");
	set_percent_adjust(30005,6,-50);
	set_percent_adjust(30005,11,100);
	add_ability(30005,10,49,0);

//	set_attack_range(,);

//	add_ability(short which_char_or_group,short which_slot,short which_ability,0);

//	if (is_town_clear(ME))
//		clean_up_town();

	if (gf(50,11) == 0) {
		sf(50,5,0);
		sf(50,6,0);
		sf(50,7,0);
		}
		else {
			sf(50,5,1);
			sf(50,6,1);
			sf(50,7,1);
			}
	break;

beginstate EXIT_STATE;

break;

beginstate START_STATE;
	//if ((set_ter1 == 0) && (gf(0,0) > 0)) {
	//	set_ter1 = 1;
	//	set_terrain(,,,);
	//	}
		
	if (gf(50,11) == 0) {
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(5037,"We are peaceful.");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(5037,"We deal with Haven.");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(5037,"These are crypts.");
		}
	if (gf(50,11) > 0) {
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(5037,"The darkness is gone.");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(5037,"Did you win?");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(5037,"You fought, Haven?");
		}

	//if (gf(,) < 2) {
	//	inc_flag(,,1);
	//	if (gf(,) == 2)
	//		begin_talk_mode();
	//	}

	//if (((is_combat()) && (tick_difference(last_abil,get_current_tick()) > 0)) || ((is_town()) && (tick_difference(last_abil,get_current_tick()) > 5))) {
	//	last_abil = get_current_tick();
	//	if ((gf(,) > 0) && (gf(,) < 100))
	//	}
break;

beginstate 10;
	sf(50,22,1);
break;

beginstate 11;
	sf(50,23,1);
break;

beginstate 12;
	sf(50,24,1);
break;

beginstate 13;
break;

//	print_str("");
//	set_terrain_string_range(".",1);
//	set_terrain_string_range("The sign says - .",1);
